package StudyCode.summary.myfile;

import java.io.IOException;
import java.nio.file.FileStore;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class BasicFileAttributeViewIsSupport {
	public static void main(String[] args) {
		try {
			Path path = Paths.get("E:\\迅雷下载\\test1.txt");
			FileStore fileStore = Files.getFileStore(path);
			System.out.println("BasicFileAttributeView 是否支持: " + fileStore.supportsFileAttributeView("basic"));
		} catch (IOException ex) {
			ex.printStackTrace();
		}
	}
}
